package com.bank.backend.boot.base.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 银行支行
 * @TableName bank_branch
 */
@TableName(value ="bank_branch")
@Data
public class BankBranch implements Serializable {
    /**
     * 支行id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 总行id
     */
    @TableField(value = "bank_base_id")
    private Long bankBaseId;

    /**
     * 隶属上级银行id
     */
    @TableField(value = "sub_id")
    private Integer subId;

    /**
     * 支行名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 支行地址
     */
    @TableField(value = "location")
    private String location;

    /**
     * 级别 0-总行，1-省行，2-市行，3-县区
     */
    @TableField(value = "level")
    private Integer level;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}